package com.shengyi.service;

import com.shengyi.common.Result;
import com.shengyi.common.result.PageResult;
import com.shengyi.model.CarCustomer;
import com.shengyi.model.request.CustomerRequest;
import com.shengyi.model.request.CustomerSearchRequest;
import com.shengyi.model.response.CustomerDto;
import com.shengyi.model.response.CustomerSexCountDto;

import java.util.List;

public interface CustomerService {
    public PageResult<CustomerDto> getAllCustomer(CustomerRequest request);

    public Result<Boolean> addCustomer(CarCustomer carCustomer);

    public Result<Boolean> updateCustomer(CarCustomer carCustomer);

    public Result<Boolean> deleteCustomer(Long id);

    public PageResult<CustomerDto> searchCustomerByName(CustomerSearchRequest request);

    public Result<List<Integer>> getAgeCount();

    public Result<List<CustomerSexCountDto>> getSexCount();
}
